package com.yunpuvip.fishport;

import com.yunpuvip.sachet.GunsApplication;
import com.yunpuvip.sachet.biz.service.UserMsgService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {GunsApplication.class})
public class transaction {

    @Autowired
    private UserMsgService userMsgService;

    @Test
    public void testTransaction(){
        System.out.println(Thread.currentThread().getId());
        userMsgService.taranTest();

        //userMsgService.taranUpdateTest2();
    }

}
